package com.xunyin.modules.common.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 分页请求参数
 *
 * Created by xunyinyunshang
 * CopyRight https://www.tonetn.com
 */
@Data
public class PageParam implements Serializable {
    private static final long serialVersionUID = -1833130751169582924L;

    @ApiModelProperty("当前页数")
    private Integer page = 1;

    @ApiModelProperty("分页大小")
    private Integer pageSize = 20;

    /**
     * 排序字段
     */
    @ApiModelProperty(value="排序字段",name="orderBy")
    private String orderBy;

    /**
     * 排序方式
     */
    @ApiModelProperty(value="排序方式",name="order")
    private String order;

    public PageParam() {
        // empty
    }


}

